package zly.learningandroid.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.android.synthetic.main.activity_third.*
import zly.learningandroid.R

class ThirdActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        Log.d(localClassName, "开始onCreate")
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_third)

        buttonBack.setOnClickListener {
            Log.d(localClassName, "开始buttonBack.setOnClickListener")
            // `finish`退出当前活动，回到上一个活动。
            finish()
        }
    }
}